<div class="leave-all" @myInsertRemoveTrigger *ngIf="change" [hidden]="!hide" draggable="true">
  <!-- 头部 -->
  <div class="leave-top">
    <div><label>请假单</label></div>
    <span class="spanOne" (click)="close()"><i class="iconfont icon-guanbi"></i></span>
    <span class="spanThree" (click)="toSmall($event)"><i class="iconfont icon-suoxiao"></i></span>
  </div>

  <div class="center">
    <div class="title">
      <div>
        <label for="">员工编号</label>
        <input type="text" disabled [(ngModel)]="info.code" class="span" />
      </div>
      <div>
        <label for="">员工姓名</label>
        <input type="text" disabled [(ngModel)]="info.name" class="span" />
      </div>
    </div>
    <div class="title">
      <div>
        <label for="">联系方式</label>
        <input type="text" disabled [(ngModel)]="info.phone" class="span" />
      </div>
      <div>
        <label for="">所属职位</label>
        <input type="text" disabled [(ngModel)]="info.position.name" class="span" />
      </div>
    </div>
    <div class="title">
      <div>
        <label for="">所属部门</label>
        <input type="text" disabled [(ngModel)]="info.dept.name" class="span" />
      </div>
      <div>
        <label for="">部门主管</label>
        <input type="text" disabled [(ngModel)]="info.dept.manager" class="span" />
      </div>
    </div>
    <div class="title">
      <label for="">请假原因</label>
      <input type="radio" class="holiday" checked="true" [(ngModel)]="type" value="事假" name="history" />事假
      <input type="radio" class="holiday" name="history" [(ngModel)]="type" value="病假" />病假
      <input type="radio" class="holiday" name="history" [(ngModel)]="type" value="年假" />年假
    </div>
    <div class="title">
      <label for="">请假时间</label>
      <input type="date" class="span" [(ngModel)]="startDate" />
      <span class="padding">到</span>
      <input type="date" class="span" [(ngModel)]="endDate" />
    </div>

    <div class="tt">
      <label for="">请假事由</label>
      <textarea name="reason" class="text-area" class="spans" [(ngModel)]="reason"></textarea>
    </div>
    <div class="titles">
      <button class="btn-submit" (click)="submit()">提交</button>
      <button class="btn-back">返回</button>
    </div>
  </div>
  <p class="message">请及时销假请及时销假请及时销假请及时销假请及时销假请及时销假</p>
</div>
